<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>	
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>场馆管理</title>
<link rel="stylesheet" href="<%=path %>/css/bootstrap.css" />
<link rel="stylesheet" href="<%=path %>/css/css.css" />
<script type="text/javascript" src="<%=path %>/js/jquery1.9.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/sdmenu.js"></script>
<script type="text/javascript" src="<%=path %>/js/laydate/laydate.js"></script>
<script type="text/javascript">
	function del(id){
		if(confirm("是否删除该记录?")){
			alert("删除成功!");
			location="<%=path%>/admin/tbvenueDelete.do?ven_id="+id;
		}
	}
</script>
</head>
<body>
	<div class="right_cont">
		<ul class="breadcrumb">当前位置：场馆管理<span class="divider">/</span></span>场馆管理</ul>
	</div>
	<div class="title_right"><strong>场馆管理</strong></div>
	
	<form action="<%=path %>/admin/tbvenueList.do" id="form" method="post">
	<table class="table table-bordered" style="width:400px" align="center">
		<tr>
			<td width="20%" align="right" bgcolor="#f1f1f1">场馆名称：</td>
			<td width="25%">
				<input type="text" name="ven_name" value="${requestScope.ven_name }" maxlength="20" id="ven_name" class="span1-1" />
			</td>
			<td width="40%">
				<input type="submit" id="submit" value="查询" class="btn btn-info " style="width: 80px;" />
			</td>
		</tr>
	</table>
	</form>
	
	<table width="90%" class="table table-bordered table-striped table-hover">
     <tbody>
       <tr align="center">
         <td width="10%" nowrap="nowrap"><strong>名称</strong></td>
         <td width="10%" nowrap="nowrap"><strong>场馆号</strong></td>
         <td width="10%" nowrap="nowrap"><strong>场馆地址</strong></td>
         <td width="10%" nowrap="nowrap"><strong>负责人</strong></td>
         <td width="10%" nowrap="nowrap"><strong>联系电话</strong></td>
         <td width="10%" nowrap="nowrap"><strong>场馆图片</strong></td>
         <td width="10%" nowrap="nowrap"><strong>场馆面积(㎡)</strong></td>
         <td width="10%" nowrap="nowrap"><strong>展位数(个)</strong></td>
         <td width="10%" nowrap="nowrap"><strong>限高(米)</strong></td>
         <td width="10%" nowrap="nowrap"><strong>承重(顿)</strong></td>
         <td width="10%" nowrap="nowrap"><strong>门高(米)</strong></td>
         <td width="10%" nowrap="nowrap"><strong>门宽(米)</strong></td>
         <td width="10%" nowrap="nowrap"><strong>操作</strong></td>
        </tr>
       <c:forEach items="${requestScope.list}" var="ven">
       <tr align="center">
         <td nowrap="nowrap">${ven.ven_name}</td>
         <td nowrap="nowrap">${ven.ven_no}</td>
         <td nowrap="nowrap">${ven.ven_address}</td>
         <td nowrap="nowrap">${ven.ven_host}</td>
         <td nowrap="nowrap">${ven.ven_phone}</td>
         <td nowrap="nowrap">
         	<div style="width:100px;height:60px">
         	<img src="<%=path %>/${ven.ven_pic_url}" style="cursor: pointer;" onclick="window.open('<%=path %>/admin/tbvenueShowPic.do?img=${ven.ven_pic_url}')" style="width:50px;height:50px"/>
         	</div>
         </td>
         <td nowrap="nowrap">${ven.ven_area}</td>
         <td nowrap="nowrap">${ven.ven_exh_no}</td>
         <td nowrap="nowrap">${ven.ven_height}</td>
         <td nowrap="nowrap">${ven.ven_weight}</td>
         <td nowrap="nowrap">${ven.ven_door_height}</td>
         <td nowrap="nowrap">${ven.ven_door_width}</td>
         <td nowrap="nowrap"><a href="<%=path%>/admin/tbvenueUpdate.do?ven_id=${ven.ven_id}">编辑</a> | <a href="javascript:void(0)" onclick="del('${ven.ven_id}')">删除</a>
       </tr>
      </c:forEach>
     </tbody>
   </table>
</body>
</html>